/*
 * Copyright © 2023
 * @Author: zhangxiang
 * @Date: 2023-05-15 11:23:27
 * @LastEditors: zhangxiang
 * @LastEditTime: 2023-09-26 10:33:18
 * @Description:
 *
 */

import Layout from '@/layout'

/**
 * @description: 智能调度路由
 * @return {*}
 */
const intelligentSchedulingRouter = {
  path: '/intelligent-scheduling', // 根路径
  component: Layout,
  redirect: '/intelligent-scheduling/distributed', // 重定向
  name: 'IntelligentScheduling', // 名称
  alwaysShow: true,
  meta: {
    title: '算力服务调度', // 标题
    menuNameKey: 'IntelligentScheduling',
    icon: 'intelligent-scheduling' // icon
  },
  children: [
    {
      path: 'distributed', // 路径
      name: 'DistributedDeployment', // 路由跳转name
      component: () => import('@/views/intelligent-scheduling/distributed'),
      meta: {
        title: '应用服务',
        icon: '',
        menuNameKey: 'DistributedDeployment',
        menuKey: 'DistributedDeployment'
      }
    },
    {
      path: 'policy', // 路径
      name: 'PolicyDeployment', // 路由跳转name
      component: () => import('@/views/intelligent-scheduling/policy/index2.vue'),
      meta: {
        title: '策略部署管理', // 标题
        icon: '',
        menuNameKey: 'PolicyDeployment',
        menuKey: 'PolicyDeployment' // menu权限控制key
      }
    }
  ]
}

export default intelligentSchedulingRouter
